package com.itheima.App;

import com.itheima.Dao.BookDao;
import com.itheima.Service.BookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Booktset {
    public static void main(String[] args) {
        ApplicationContext ca = new ClassPathXmlApplicationContext("applicationContext.xml");
        BookService bookService = (BookService) ca.getBean("book");
        bookService.save();



    }
}
